package com.service.healthycode.dto;

import lombok.Data;

import java.util.Date;

/**
 * @author: hjl
 * @date: 2022/04/24 16:52
 * @description
 */
@Data
public class TouchInfoDto {
    private String id;
    private String uId;
    private String terminalMac;
    private Long touchTime;
    private Long stayTime;
    private String terminalId;
    private String dangerId;
    /**
     * 状态---4:确诊；3:密接；2：次密接；1-低风险
     */
    private Integer status;
    private String statusStr;
    private String apMac;
    private Date touchStartTime;
    private Date touchEndTime;
    private Date updateTime;
    private Date createTime;

    public String getStatusStr() {
        switch (status){

            case 4:
                statusStr="确诊";
                break;
            case 3:
                statusStr="密接";
                break;
            case 2:
                statusStr="次密接";
                break;
            case 1:
                statusStr="低风险";
                break;
            case 0:
                statusStr="无风险";
                break;
        }
        return statusStr;
    }
}
